package com.ers.service;

import java.util.List;

import com.ers.dao.CompanyDao;
import com.ers.model.Company;
import com.ers.model.Photo;

public class CompanyService {
	private CompanyDao companyDao;
	public CompanyDao getCompanyDao() {
		return companyDao;
	}

	public void setCompanyDao(CompanyDao companyDao) {
		this.companyDao = companyDao;
	}
	
	public void add(Company c){
		companyDao.save(c);
	}

	public Company load(int id) {
		return null;
	}

	public void update(Company company) {
		companyDao.update(company);
	}

	public List<Photo> loadPhoto(int id) {
		return companyDao.load(id);
	}
}
